﻿using FluentMigrator;
using Zinnia.EF.Models;
using Zinnia.Lite.Migrations;

namespace Zinnia.EF.Migrators
{
    [Migration(2016041123441111)]
    public class UserMigrator : ZinniaBaseMigrator<User>
    {
        public override void Up()
        {
            if (IsExistTable())
            {
                return;
            }
            InitTable()
                .WithColumn("Name").AsString()
                .WithColumn("Age").AsInt32()
                .WithColumn("Test").AsString()
                .WithColumn("Test2").AsString()
                .WithColumn("Test3").AsString();
        }

        public override void Down()
        {
            throw new System.NotImplementedException();
        }
    }
}
